using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EVegetable.Persistence.Mapper
{
    using EVegetable.Persistence.QueryModel;

    internal class QueryTranslator
    {
        private Query _query;

        public QueryTranslator(Query query)
        {
            _query = query;
        }

        public void Execute()
        {
            Query myQuery = this._query;

            foreach (OrderClause clause in myQuery.OrderClauses)
            {
                
            }

            foreach (Criterion myCriterion in myQuery.Criteria)
            {
                
            }

            foreach (Query subQuery in myQuery.SubQueries)
            {
                QueryTranslator myTranslator = new QueryTranslator(_query);
                myTranslator.Execute(); // Recursive Call
            }
        }
    }
}
